package com.yourenbang.lingyun.transaction.web.domain.dto.pay.lakala;

import com.yourenbang.lingyun.core.util.date.DateFormat;
import com.yourenbang.lingyun.core.util.json.ToJSON;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class LakalaMercPositionQueryDTO implements Serializable, ToJSON {

    private String action = "commit";

//    private String receiver;
//
//    private String sender;

    private String sid;

    private String service = "recdqry";

    private String chncode;

    private String busid = "030029";

    private String instcode;

    private String mercid;

    private String busmercode;

    private String termid;

    private String telecode;

    private String tdtm = DateFormat.DATETIME_COMPACT.format(LocalDateTime.now());

    private String series;

    private String sign;

    public String toSign(){
        return sid + mercid + chncode;
    }

}
